// Copyright 2007-2009 Stuart Caborn, Alex Scordellis
//  
//  Licensed under the Apache License, Version 2.0 (the "License"); 
//  http://www.apache.org/licenses/LICENSE-2.0

namespace MainApplication
{
    public interface ISomeRepository
    {
        SomeDomainObject FindSomeDomainObject(int objectId);
        void Save(SomeDomainObject objectToSave);
    }

    public class SomeRepository : ISomeRepository
    {
        public SomeDomainObject FindSomeDomainObject(int objectId)
        {
            return null;
        }

        public void Save(SomeDomainObject objectToSave)
        {
        }
    }

    public static class FakeIoC
    {
        public static ISomeRepository Resolve
        {
            get { return new SomeRepository(); }
        }
    }
}